package commandPattern;

//接收者：待操作的对象
public class Light {

    public void on() {
        System.out.println("Light is on.");
    }

    public void off() {
        System.out.println("Light is off.");
    }
}
